import { Router } from 'vue-router'

interface CustomRouter extends Router {
  running?: boolean;
  nextRoute?: string | null;
}

export default defineNuxtPlugin((nuxtApp) => {
  const customRouter: CustomRouter = <CustomRouter>useNuxtApp().$router
  customRouter.options.scrollBehavior = () => {
    return { left: 0, top: 0 }
  }
})
